<script>
export default {
  name: "AsideController",
  data(){
    return {
    }
  },
  computed:{
    "menu":{
      get() {
        return this.$store.state.menu
      }
    }

  },
  props:{
    isCollapse:Boolean
  }
}
</script>

<template>
  <el-menu
      background-color="#545c64"
      text-color="#fff"
      active-text-color="#ffd04b"
      style="height: 100%"
      default-active="/HomePage"
      :collapse="isCollapse"
      :collapse-transition="false"
      router
      >
    <el-menu-item index="/HomePage">
      <i class="el-icon-s-promotion"></i>
      <span slot="title">首页</span>
    </el-menu-item >
    <el-menu-item :index="'/'+item.menuclick" v-for="(item, i) in menu" :key="i">
      <i :class="item.menuicon"></i>
      <span slot="title">{{item.menuname}}</span>
    </el-menu-item>

<!--    <el-menu-item index="three">
      <i class="el-icon-s-data"></i>
      <span slot="title">数据</span>
    </el-menu-item>-->

  </el-menu>
</template>

<style scoped>

</style>